#ifndef VIDEOINFO_H
#define VIDEOINFO_H
#include <QString>

class VideoInfo
{
    public:
        VideoInfo() : title(""), artist(""), duration(0), likes(0), dislikes(0), viewCount(0), id(""), playlist("") {}

        friend bool operator== (VideoInfo x, VideoInfo y);
        friend bool operator!= (VideoInfo x, VideoInfo y);

        QString title;
        QString artist;
        long duration;
        long likes;
        long dislikes;
        long viewCount;
        QString id;
        QString playlist;
};

bool operator== (VideoInfo x, VideoInfo y)
{
    return (x.id == y.id);
}

bool operator!= (VideoInfo x, VideoInfo y)
{
    return !(x == y);
}

#endif // VIDEOINFO_H
